﻿using System.Collections.Generic;
using System.Windows;
using FreshTexture.Model;
using FreshTexture.Settings;
using GalaSoft.MvvmLight.Threading;

namespace FreshTexture
{
    /// <summary>
    ///     Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        static App()
        {
            DispatcherHelper.Initialize();

            //TODO wstawić tu własnego Spash Screena i dać tu np. check memory
            // var sp = new SplashScreen("ddd");
            //sp.Show(true);

            var settings = new MySettings(); // MUST BE A FIRST
            settings.InitializeSettings();


            StaticLists.Source = new List<Entity>();
            StaticLists.Destination = new List<Entity>();

            StaticLists.Source=CreateEntities.CreateEmpty(StaticLists.Source, "Source");
            StaticLists.Destination=CreateEntities.CreateEmpty(StaticLists.Destination, "Destination");
            
            //long loo = MemoryIO.CheckMemory ();

            //int wynik = unchecked ((int) loo);

            //Debug.WriteLine ("Ilosc dostepnej pamieci {0}", wynik);
        }
    }
}